<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<script src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/pc_common.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>

</head>

<body>
<include file="Public/header" />

    <div class="breadcrumb-area">    
<div class="layout">
	  
           <img src="__STATIC__/images/cart_btn.jpg" >{$Think.lang.mycart}
       
    </div>
</div>
<link rel="stylesheet" href="__STATIC__/css/cart.css" type="text/css">
    <div class="layout after-ta order-ha">
    	<div class="erhuh">
        	<i class="icon-succ"></i>
            <h3>{$Think.lang.orders_submit_success_hints}</h3>
            <p class="succ-p">
                {$Think.lang.orderid} ：&nbsp;&nbsp;{$order['order_sn']}&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;
                {$Think.lang.payment_amount_yuan}  ：&nbsp;&nbsp;<b>{$order['order_amount']}</b>&nbsp;<b>{$Think.lang.yuan}</b></p>
            <div class="succ-tip">
                {$Think.lang.please_you}  &nbsp;&nbsp;<b>{$pay_date}</b>&nbsp;{$Think.lang.complete_payment_hints}
            </div>
			
			<if condition="$order['user_id'] eq ''" >
			
			<if condition="$mobilesn eq ''" >
			<div style="padding:5px 5px; width:90%; background:#fff; margin:10px 0; border:1px solid #dedede;">{$Think.lang.unregistered_purchase_hints} </div>
			</if>
			</if>
			
			
        </div>
        <div class="ddxq-xiaq">
		<if condition="$order['user_id'] eq ''" >
        	<a href="{:U('Home/Cart/order_detail',array('id'=>$order['order_id']))}">
                {$Think.lang.order_details}
                <i></i>
            </a>
		<else />
        	<a href="{:U('Home/User/order_detail',array('id'=>$order['order_id']))}">
                {$Think.lang.order_details}
                <i></i>
            </a>
		
		</if>
        </div>
        <form action="{:U('Home/Payment/getCode')}" method="post" name="cart4_form" id="cart4_form">
        <div class="orde-sjyy">
        	<h3 class="titls">{$Think.lang.chooses_way_payment} </h3>
            <div class="bsjy-g">
            	<dl>
            		<dd>
						
						<div class="order-payment-area">
                        	<div class="dsfzfpte">
                            	<b>{$Think.lang.paymentmethod}</b>
                            </div>
                            <div class="po-re dsfzf-ee">
                            	<ul>
                                <foreach name="paymentList" item="v"  key="k">                                
                            		<li>
                                    	<div class="payment-area">
                                        	<input type="radio" id="input-ALIPAY-1" value="pay_code={$v['code']}" class="radio vam" name="pay_radio" >
                                            <label for="">
                                            	<img src="/plugins/{$v['type']}/{$v['code']}/{$v['icon']}" width="120" height="40" onClick="change_pay(this);" />
                                            </label>
                                        </div>
                                    </li>
                                </foreach>                                                            		 
                            	</ul>
                            </div>
                        </div>  
                        
                    <!--第三方网银支付 start-->
                      <foreach name="bankCodeList" item="v"  key="k">
						<div class="order-payment-area" style="display:none;">
                        	<div class="dsfzfpte">
                                    <b>{$paymentList[$k]['name']}</b>
                                    <em>{$Think.lang.net_silver_payment}</em>
                                </div>
                            <div class="po-re dsfzf-ee">
                                    <ul>
				                      <foreach name="v" item="v2"  key="k2">
                                        <li>
                                            <div class="payment-area">
                                                <input type="radio" name="pay_radio" class="radio vam" value="pay_code={$k}&bank_code={$v2}" id="input-ALIPAY-1">
                                                <label for="">
                                            	<img src="__STATIC__/images/images-out/{$bank_img[$k2]}" width="120" height="40" onClick="change_pay(this);"/>
                                                </label>
                                            </div>
                                        </li>                
				                    </foreach>                                                           
                                    </ul>
                            </div> 
                        </div>     
                    </foreach>                   
                    <!--第三方网银支付 end -->
                                                             	
                    </dd>
            	</dl>
                <div class="order-payment-action-area">                    
                    <a class="button-style-5 button-confirm-payment" href="javascript:void(0);" onClick="$('#cart4_form').submit();" >{$Think.lang.confirm_way_payment}</a>
                </div>
            </div>
        </div>
        <input type="hidden" name="order_id" value="{$order['order_id']}" />
       </form>
    </div>
<script>
$(document).ready(function(){
	 $("input[name='pay_radio']").first().trigger('click');
});
// 切换支付方式
function change_pay(obj)
{
	$(obj).parent().siblings('input[name="pay_radio"]').trigger('click');
}
</script>    
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->
</body>
</html>
